<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../../style/bootstrap-4.6.0-dist/css/bootstrap.css" rel="stylesheet">
    <style>
        body{
            background-image: url("../../style/img/7.jpg");
            background-size: 100%;
        }

    </style>
</head>
<body>
<div class="container" >
    <div class="row">
        <div class="span6">
            <ul class="breadcrumb">
                <li>
                    <a href="#" onclick="identificationSalesman()">订单管理</a> <span class="divider">></span>
                </li>
                <li>
                    <a href="#" onclick="identifyFinancialOfficer()">订单审核</a> <span class="divider">></span>
                </li>
            </ul>
        </div>
    </div>
</div>
    <script src="../../style/jquery-3.3.1.js"></script>
    <script src="../../style/vue.js"></script>
    <script src="../../style/bootstrap-4.6.0-dist/js/bootstrap.js"></script>
    <script>
        //点击订单管理鉴别登录用户是否拥有业务员权限
        identificationSalesman=function () {
            $.ajax({
                type: "post",
                url: "../../OrderForm/identificationSalesman",
                data: "",
                dataType: "json",
                success: function (data) {
                    if (data.message=="成功"){
                        window.location.href="orderForm_list.html";
                    }else{
                        alert("你未拥有业务员权限，无法管理订单");
                    }
                }
            });
        }
        //点击审核订单鉴别登录用户是否拥有财务员权限
        identifyFinancialOfficer=function () {
            $.ajax({
                type: "post",
                url: "../../OrderForm/identifyFinancialOfficer",
                data: "",
                dataType: "json",
                success: function (data) {
                    // 删除完成后重新查询第一页
                    if (data.message=="成功"){
                        window.location.href="treasurerOrderForm.html";
                    }else{
                        alert("你未拥有财务员权限，无法审核订单");
                    }
                }
            });
        }
    </script>
</body>
</html>